package databasetools;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

import Statistic.Statisticator;

public class historyCollectionToARFF
{

	/**
	 * @param args
	 * @throws
	 */
	public static void main(String[] args)
	{
		Statisticator s = new Statisticator();
		s.readMovieDaysFromWeb();
		s.createHistoyCollection();

		FileWriter outFile;
		try
		{
			outFile = new FileWriter("movies2.arff");

			PrintWriter out = new PrintWriter(outFile);

			out.println(s.getCollection().toARFFData());

			out.close();
		} catch (IOException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
